package net.ufrog.common.jetbrick;

import jetbrick.template.JetAnnotations;
import net.ufrog.common.utils.Strings;

/**
 * @author ultrafrog
 * @version 1.0, 2014-10-04
 * @since 1.0
 */
@JetAnnotations.Functions
public class Functions {

    /**
     * @param value 待判断对象
     * @return 判断结果
     */
    public static Boolean empty(Object value) {
        if (value instanceof String) {
            return Strings.empty((String) value);
        } else {
            return value == null;
        }
    }
}
